package com.zch.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.PrincipalAreaMapper;
import com.zch.dao.model.PrincipalArea;
import com.zch.dao.model.PrincipalAreaExample;

@Service
public class PrincipalAreaService {
	@Autowired
	private PrincipalAreaMapper principalAreaMapper;

	public int countByExample(PrincipalAreaExample example) {
		return this.principalAreaMapper.countByExample(example);
	}

	public PrincipalArea selectByPrimaryKey(String id) {
		return this.principalAreaMapper.selectByPrimaryKey(id);
	}

	public List<PrincipalArea> selectByExample(PrincipalAreaExample example) {
		return this.principalAreaMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.principalAreaMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(PrincipalArea record) {
		return this.principalAreaMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(PrincipalArea record) {
		return this.principalAreaMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(PrincipalAreaExample example) {
		return this.principalAreaMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(PrincipalArea record, PrincipalAreaExample example) {
		return this.principalAreaMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(PrincipalArea record, PrincipalAreaExample example) {
		return this.principalAreaMapper.updateByExample(record, example);
	}

	public int insert(PrincipalArea record) {
		return this.principalAreaMapper.insert(record);
	}

	public int insertSelective(PrincipalArea record) {
		return this.principalAreaMapper.insertSelective(record);
	}

}
